package com.opal.modules.costReportForm.controller;

import com.opal.modules.costReportForm.entity.CostReportB;
import com.opal.modules.costReportForm.service.CostReportBService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("costReportB")
public class CostReportBController {

    @Autowired
    private CostReportBService costReportBService;

    /**
     * 根据成本报告单据号获取数据库表cost_report_b_singlehours的数据
     * @param costReportId  成本报告id
     * @return
     */
    @RequestMapping("getCostReportBSinglehoursById")
    public Object getCostReportBSinglehoursById(String costReportId){

        return costReportBService.getCostReportBSinglehoursByIdService(costReportId);
    }
}
